package com.hundsun.cprs.yyt.service.dilivery.enums;

import java.util.HashMap;
import java.util.Map;

public enum EnumDiliveryAddress {
	Y_DEFAULT_ADDRESS("Y","默认地址"),
	N_DEFAULT_ADDRESS("N","非默认地址"),
	Y_DELETE_ABLE("Y", "已删除"),
    N_DELETE_DISABLE("N", "未删除");
	
	private String code;
	private String value;

	
	private EnumDiliveryAddress(String code, String value) {
		this.code = code;
		this.value = value;
	}

	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	 public static Map<String, String> toMap() {
	        Map<String, String> map = new HashMap<String, String>();
	        for (EnumDiliveryAddress record : values()) {
	            map.put(record.getCode(), record.getValue());
	        }
	        return map;
	    }
}
